// 引入 会员 数据
import {memberlist} from '../../../request/api'


const state= {
    memberList:[]
}

const mutations={
    MEMBER(state,payload){
        state.memberList = payload
    }
}

const actions={
    getMemberAction({commit}){
        memberlist().then(res=>{
        commit('MEMBER',res.list)
        })
    }
}

const getters={
    getMember(state){
        return state.memberList
    }
}

export default{
    state,mutations,actions,getters,namespaced:true
}